@extends('layout/header')
@section('headcss')
@stop
@section('content')
    <div id="content">
        <div class="container">
            <div class="title-4">
                <p>真情留言</p>
            </div>
            <div class="mb"><a href="/">首页</a><span>></span><span class="red">真情留言</span></div>
            <div class="clearfix board-container">
                <div class="t clearfix">
                    <div class="fl">&nbsp;&nbsp;希望寻人网感谢您的来访，为了让更多的寻亲家庭早日团聚，也为了我们能够帮助到更多的寻亲者，欢迎您给我们留下宝贵的留言。</div>
                    <div class="fr">共有{{$data->total()}}个留言&nbsp;&nbsp;</div>
                </div>
                <ul class="aa">
                    @if(!empty($data))
                        @foreach($data as $d)
                    <li class="clearfix">
                        <h5>ID：{{$d->name}}</h5>
                        <p>{{$d->message}}，qq：{{$d->Internet}}</p><span class="fr">{{date('Y/m/d H:i:s',$d->create_time)}}</span>
                    </li>
                        @endforeach
                    @endif
                </ul>
                <div class="page container">
                    <ul class="clearfix">
                        @if(!empty($data))
                            {!!  $data->links() !!}
                        @endif
                    </ul>
                </div><br/><br/>
            </div>
            <div style="height:50px;"></div>
            <div class="form container">
                <div class="form-t">发表留言</div>
                <dl class="clearfix">
                    <dd class="clearfix" style="width:25%">
                        <div class="label fl" style="text-align:left;text-indent:10px;width:60px"> 姓名：</div>
                        <div class="fr">
                            <input class="fr" id="name" type="text" style="width:150px"/>
                        </div>
                    </dd>
                    <dd class="clearfix" style="width:25%">
                        <div class="label fl" style="text-align:left;text-indent:10px;"> 联系方式：</div>
                        <div class="fr">
                            <input class="fr"  id="phone" type="text"/>
                        </div>
                    </dd>
                    <dd class="clearfix" style="width:25%">
                        <div class="label fl" style="text-align:left;text-indent:10px;"> QQ/微信：</div>
                        <div class="fr">
                            <input class="fr" id="internet" type="text"/>
                        </div>
                    </dd>
                    <dd class="clearfix" style="width:25%">
                        <div class="label fl" style="text-align:left;text-indent:10px;"> 电子邮箱：</div>
                        <div class="fr">
                            <input class="fr" id="email" type="text"/>
                        </div>
                    </dd>
                </dl>
                <div class="li">
                    <div class="label fl" style="width:100%;text-align:left">备注内容:</div>
                    <textarea name="" cols="30" id="message" rows="10" style="width:100%"></textarea>
                </div>
                <input class="submit" type="button" id="leavemessage" value="我要发布"/>
            </div>
        </div>
    </div>
    @stop
@section('js')
    <script src="{{ URL::asset('js/leavemessage.js')}}"></script>
    @stop
